#include<stdio.h>
#include "hash.h"
int main(){
	hash * h = hash_create();
	if(h == NULL){
		return -1;
	}
	int key;
	linklist p;
	int data[] = {23, 34, 14, 38, 46, 16, 68, 15, 7, 31, 26};
	for(int i = 0; i <= sizeof(data) / sizeof(int) ; i++){
		hash_insert(h, data[i]);
	}
	
	printf("input:");
	scanf("%d", &key);
	p = hash_search(h, key);
	if(p == NULL){
		printf("Not Found\n");
	}else{
		printf("Found: %d\n", p->key);
	}
	return 0;
}
